/**
 * Created by yl on 2016/6/29 0029.
 */
/*var testView = Vue.extend({
  template: '<iframe src="../fdb/node-v2.html" frameborder="0" width="100%"  height="800" ></iframe>'
});*/
var Member = Vue.extend({
  template: '<iframe src="../member/members-v2.html" frameborder="0" width="100%"  height="800" ></iframe>'
});
/*var Task = Vue.extend({
  template: '<iframe src="../task/task-v6.html" frameborder="0" width="100%"  height="800" ></iframe>'
});*/
/*import TestView from './components/dash/Test.vue'
var Member = Vue.extend({
  template: TestView
});*/
var Task = Vue.extend({
  template: '<script type="x/template" src="../member/members-v2.html"></script>'
});
var Test = Vue.extend({
  template: '<p>This is a test</p>'
});

var App = Vue.extend({});

var router = new VueRouter();
 router.map({
/*  '/node': {
    component: Node
  },*/
  '/member': {
    component: Member
  },
  '/task': {
    component: Task
  },
  '/user/:userId':{
    name: 'user',
    component: Test
  }
});

router.start(App, '#app');
function test(){
  router.go({ name: 'user', params: { userId: 123 }});
  router.on({
  })
}
